//
//  CMURegisterController.h
//  BoonApp
//
//  Created by Liuyi Sun on 10/1/12.
//  Copyright (c) 2012 CMU. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface CMURegisterController : UIViewController<ZBarReaderDelegate, UITableViewDelegate,UITableViewDataSource,UITextFieldDelegate>{
    NSString* firstName_;
    NSString* lastName_ ;
	NSString* address_ ;
	NSString* password_ ;
	
    UITextField* firstNameField_ ; 
	UITextField* lastNameField_ ;
	UITextField* addressField_ ;
	UITextField* passwordField_     ;
}
@property (weak, nonatomic) IBOutlet UITextView *qrcode;
- (IBAction)testScan:(id)sender;


// Handles consumer register
- (IBAction)actionRegister:(id)sender;

// Creates a textfield with the specified text and placeholder text
-(UITextField*) makeTextField: (NSString*)text
                  placeholder: (NSString*)placeholder  ;
// Handles UIControlEventEditingDidEndOnExit
- (IBAction)textFieldFinished:(id)sender ;

@property (nonatomic,copy) NSString* firstName ;
@property (nonatomic,copy) NSString* lastName ;
@property (nonatomic,copy) NSString* address ;
@property (nonatomic,copy) NSString* password ;
@property (nonatomic, strong) NSMutableData *responseData;

@end    
